package org.hepeng.hope.dao

import org.hepeng.hope.CornerstoneApplicationTests
import org.hepeng.hope.entity.AccountRole
import org.hepeng.hope.entity.AccountRolePK
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.test.context.ActiveProfiles


@ActiveProfiles(profiles = ["dev"])
internal class AccountRoleDAOTest : CornerstoneApplicationTests() {

    @Autowired lateinit var dao: AccountRoleDAO

    @Test
    fun insertTest() {
        val saved1 = dao.save(AccountRole(pk = AccountRolePK(1 , 1)))
        val saved2 = dao.save(AccountRole(AccountRolePK(1 , 2)))

    }
}